using Framework.Core.Io;

namespace Framework.Core.Process
{
    public class WindowsService : IProcess
    {
        public int ProcessId { get; private set; }
        public string Name { get; private set; }
        public string FileName { get; private set; }
        public string Arguments { get; private set; }
        public bool IsNative { get { return true; } }

        public WindowsService(int processId, string name, string fileName, string arguments)
        {
            Arguments = arguments;
            FileName = fileName;
            Name = name;
            ProcessId = processId;
        }

        public override string ToString()
        {
            return string.Format(@"ws: {0} ({1})", Name, ProcessId);
        }
    }
}